package cn.kow.kmall.common.wxpay;

/**
 * @Author: lijun
 * @Date: 2018/10/15 11:31
 */
public class IWXPayDomainImpl implements IWXPayDomain {

    private IWXPayDomainImpl() { }

    @Override
    public void report(String domain, long elapsedTimeMillis, Exception ex) {

    }

    @Override
    public DomainInfo getDomain(WXPayConfig config) {
        return new DomainInfo(WXPayConstants.DOMAIN_API,true);
    }

    private static class WxpayDomainHolder{
        private static IWXPayDomain holder = new IWXPayDomainImpl();
    }

    public static IWXPayDomain instance(){
        return WxpayDomainHolder.holder;
    }
}
